package top.fzqblog.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author 抽离
 * @since 2017-09-02
 */
public class Prize extends Model<Prize> {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(value = "prize_id")
	private Integer prizeId;



	/**
	 * 
	 */
	private String prizeName;

	/**
	 * 
	 */
	private String prizeImg;

	/**
	 * 
	 */
	private Integer prizeCount;

	/**
	 * 
	 */
	private Integer credits;

	/**
	 * 
	 */
	private Integer status;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

	/**
	 *
	 * @return
	 */
	private Integer prizeTotalCount;

	public Integer getPrizeId() {
		return prizeId;
	}

	public void setPrizeId(Integer prizeId) {
		this.prizeId = prizeId;
	}

	public String getPrizeName() {
		return prizeName;
	}

	public void setPrizeName(String prizeName) {
		this.prizeName = prizeName;
	}

	public String getPrizeImg() {
		return prizeImg;
	}

	public void setPrizeImg(String prizeImg) {
		this.prizeImg = prizeImg;
	}

	public Integer getPrizeCount() {
		return prizeCount;
	}

	public void setPrizeCount(Integer prizeCount) {
		this.prizeCount = prizeCount;
	}

	public Integer getCredits() {
		return credits;
	}

	public void setCredits(Integer credits) {
		this.credits = credits;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	protected Serializable pkVal() {
		return this.prizeId;
	}

	public Integer getPrizeTotalCount() {
		return prizeTotalCount;
	}

	public void setPrizeTotalCount(Integer prizeTotalCount) {
		this.prizeTotalCount = prizeTotalCount;
	}

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
	public String toString() {
		return "Prize{" +
				"prizeId=" + prizeId +
				", prizeName='" + prizeName + '\'' +
				", prizeImg='" + prizeImg + '\'' +
				", prizeCount=" + prizeCount +
				", credits=" + credits +
				", status=" + status +
				", prizeTotalCount=" + prizeTotalCount +
				'}';
	}
}
